home *** CD-ROM | disk | FTP | other *** search
- #ifndef __DUMPTRACKS__
- #define __DUMPTRACKS__
-
- #define GOLD
-
- #include "TraceModule.h" // Contains trace template...
-
- #define kMaskStringListID 777 // ID of STR# list that is used by this tool
-
- typedef char *BytePtr;
-
- typedef struct
- {
- Str31 FieldName;
- Str31 Type;
- short Count;
- } Field, *FieldPtr;
-
- typedef struct
- {
- Str31 TemplateName;
- short NumFields;
- FieldPtr Fields;
- } Template, *TemplatePtr;
-
- typedef struct
- {
- short NumTemplates;
- Template FirstTemplate;
-
- } Tmpl, *TmplPtr, **TmplHandle;
-
-
- short GetFolderVol(OSType type);
-
- snum DecodeSym(char *stringBuffer, char *sym, Boolean showTypeInfo, Ptr stackdataPtr);
- void CopyEbcdicToAscii(chex *ascii, chex *toEbcdic, shex dataLength);
-
- void PrintRecord(snum length);
- void PrintFmt01(char *fmt01Ptr);
- void PrintFmt02(Ptr dataPtr, short dataLength);
- void PrintFmt04(long dataLong);
- void PrintFmt05(BytePtr data);
- void PrintFmt06(BytePtr data);
- void ParseArgs(int argc, char **argv);
- snum ReadFileRecords(short refNum);
- void PrintTimeAndDate(long timestamp);
- BytePtr PrettyDump(BytePtr data, BytePtr typeString);
-
- void ParseIt(void);
- BytePtr PrintPStr(BytePtr str);
- BytePtr HandleTemplate(BytePtr templ, Boolean printOn);
- BytePtr HandleField(BytePtr field, Boolean printOn);
- BytePtr HandleType(Str31 Type, BytePtr wh);
- BytePtr DMWithTemplate (BytePtr wh, char *searchType);
-
- short TypeDumpSetUp(short sysFolder);
- void TypeDumpCloseDown(void);
- BytePtr SkipPStr(BytePtr str);
-
-
-
- #endif
-